package com.itheima.framework.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*****
 * @Author: http://www.itheima.com
 * @Description: com.itheima.framework.view.ViewHandler
 ****/
public interface ViewHandler {

    //转发
    default void forward(HttpServletRequest request, HttpServletResponse response,Object result){}

    //输出JSON数据
    default void print(HttpServletResponse response,Object result){}
}
